function count(arr, target) {
    let map = new Map();
    for (let i = 0; i < arr.length; i++) {
        if (map.has(arr[i])) {
            return [map.get(arr[i]), arr[i]]
        } else {
            map.set(target - arr[i], arr[i])
        }
    }
    return []
}